<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<script type="text/javascript">
var formId = '${formId}';
	$(function() {
		$('#dataGridForHistory').datagrid({
		    url:'${pageContext.request.contextPath}/apply/approvedHistoryUIData?formId=' + formId , 
		    fitColumns : true,
		    columns:[[  
		        {field:'loginName',title:'审批人',width:100},  
		        {field:'approveTime',title:'审批时间',width:200},  
		        {field:'approval',title:'是否通过',width:100,
		        	formatter: function(value,row,index){
		                if (value){
		                    return "同意";
		                } else {
		                    return "不同意";
		                }
		            }
		        },  
		        {field:'comment',title:'审批意见',width:100}  
		    ]]  
		}); 
	});
</script>
<div style="margin: 5px">
	<div >
		<table id="dataGridForHistory"></table>
	</div>
</div>